import request from '@/utils/request'

// 查询派单标签列表
export function listDistributeTag(query) {
  return request({
    url: '/biz/distributeTag/list',
    method: 'get',
    params: query
  })
}

// 查询派单标签详细
export function getDistributeTag(id) {
  return request({
    url: '/biz/distributeTag/' + id,
    method: 'get'
  })
}

// 新增派单标签
export function addDistributeTag(data) {
  return request({
    url: '/biz/distributeTag',
    method: 'post',
    data: data
  })
}

// 修改派单标签
export function updateDistributeTag(data) {
  return request({
    url: '/biz/distributeTag',
    method: 'put',
    data: data
  })
}

// 删除派单标签
export function delDistributeTag(id) {
  return request({
    url: '/biz/distributeTag/' + id,
    method: 'delete'
  })
}
